<div>
    <script type="text/javascript">
        $(document).ready(function() {
            //first question
            $(".hideComment0").hide();         
            $(".show0").click(function() {
                $(".hideComment0").show();
            });

            $(".stealth0").click(function() {
                $(".hideComment0").hide();
            });
            
            //second
             $(".hideComment1").hide();         
            $(".show1").click(function() {
                $(".hideComment1").show();
            });

            $(".stealth1").click(function() {
                $(".hideComment1").hide();
            });
            
            //third
             $(".hideComment2").hide();         
            $(".show2").click(function() {
                $(".hideComment2").show();
            });

            $(".stealth2").click(function() {
                $(".hideComment2").hide();
            });
            
            //fourth
             $(".hideComment3").hide();         
            $(".show3").click(function() {
                $(".hideComment3").show();
            });

            $(".stealth3").click(function() {
                $(".hideComment3").hide();
            });
            
            //fifth
             $(".hideComment4").hide();         
            $(".show4").click(function() {
                $(".hideComment4").show();
            });

            $(".stealth4").click(function() {
                $(".hideComment4").hide();
            });

        });



    </script>
    <?php echo $this->Form->create('Questionnaire'); ?>
    <?php if (!empty($questionnaire['Question'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <?php
            $i = 0;
            foreach ($questionnaire['Question'] as $question):
                ?>
                <td><b><?php echo $question['questions']; ?></b>
                    <br>
                    <br>
                    <div class="btn-group" data-toggle="buttons">
                        <label class="stealth<?php echo $i ?> btn btn-primary">
                            <input type ="radio" name="0" id="00" value="0">Yes
                        </label>
                        <label class="show<?php echo $i ?> btn btn-primary" >
                            <input type ="radio" name="0" id="01" value="1">No
                        </label>                                     
                    </div>
                    <br><br>
                    <div class="hideComment<?php echo $i ?> alert-danger"><?php echo $question['comments']; ?>
                    </div>                  
                </td>
                </tr>
                <?php
                $i++;
            endforeach;
            ?>
        </table>
<?php endif; ?>
    <div class="alert alert-success">
        If you have answered yes for everything, please feel free to contact DCAB.
    </div>

</div>
